package com.fjec.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.market.entity.BizRating;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 013.商品评价表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-09-22
 */
public interface BizRatingMapper extends BaseMapper<BizRating> {

    List<Map<String, Object>> getPageBySpuId(@Param("spuId") Long spuId, Page page);

    /**
     * 获取所有商品Spu评分
     *
     * @return
     */
    List<Map<String, Object>> getSpuStarForSchedule();
}
